#include<stdio.h>
int main()
{
	int men,wen,little;
	int sum_people,sum_money;
	for(men=1;men<17;men++)
	  for(wen=1;wen<26;wen++)
	     for(little=1;little<51;little++)
	     {
	         sum_people=men+wen+little;
	         if(sum_people==30)
	         {
	            sum_money=men*3+wen*2+little;
	            if(sum_money==50) 
	               printf("men=%d wen=%d little=%d\n",men,wen,little);
	         }
	     }
	return 0;            
}
